<?php 
	$html->css("userSettings", null, array("inline"=>false));
	$html->script("userSettings",false); 
?>
<div id="setting">
	<?php echo $form->create('User',array('action'=>'settings'));?>
	<h2>Settings</h2>
	<fieldset>
		<legend>User Settings Form</legend>
		<table>
			<tr>
				<th>Email</th>
				<td>
					<?php echo $form->input('Email',array('default' => $user['email'])); ?>					
				</td>
			</tr>
			<tr>
				<th>Password</th>
				<td>
					<?php echo $form->input('Current Password',array('type'=>'password')) ?>
					<?php echo $form->input('New Password',array('type'=>'password')) ?>
					<?php echo $form->input('Confirm Password',array('type'=>'password')) ?>
				</td>
			</tr>
			<tr>
				<th>Edit posts using</th>
				<td>
					<?php
						echo $form->input('field', array('type'=>'radio','options' => array('plain editor','rich editor')));
					?>
				</td>
			</tr>
			<tr>
				<th>Email Notifications</th>
				<td>
					<div class="notiSetting">
						<?php
							$options = array(1 => 'New Message', 'New followers', 'Reblog');
							$selected = array(1,2,3);
							echo $form->input('notifications', array('multiple' => 'checkbox', 'options' => $options, 'selected' => $selected));
						?>
					</div>
				</td>
			</tr>
			<tr>
				<th>Applications</th>
				<td></td>
			</tr>
		</table>
		<?php echo $form->end('Save') ?>
	</fieldset>
</div>
<script type="text/javascript">
	var nav = new NavState("#nav");
	nav.changeCurrent(2);
</script>